from task import Task
sets = []

CompuCostlist = [22, 24, 22, 12]
UpCostlist = [65, 122, 18, 3]
Mid_ddl_list = [264, 209, 36, 4]
DDL_list = [286, 288, 71, 23]
Period_list = [498, 288, 80, 24]
until = 100000
def GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list):
    task_set = []
    for i in range(len(CompuCostlist)):
        c_i = CompuCostlist[i]
        r_i = UpCostlist[i]
        m_i = Mid_ddl_list[i]
        d_i = DDL_list[i]
        p_i = Period_list[i]
        task = Task(c_i,r_i,m_i,d_i,p_i)
        task_set.append(task)
    return task_set
task_set0 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set0)
#--------------------------------------------------
CompuCostlist = [16, 30, 13, 12]
UpCostlist = [123, 9, 14, 4]
Mid_ddl_list = [244, 29, 29, 4]
DDL_list = [282, 124, 43, 22]
Period_list = [296, 162, 46, 32]
until = 100000
task_set1 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set1)
#--------------------------------------------------
CompuCostlist = [10, 21, 10, 24]
UpCostlist = [22, 32, 10, 6]
Mid_ddl_list = [51, 48, 12, 23]
DDL_list = [63, 107, 30, 61]
Period_list = [66, 152, 35, 76]
until = 100000
task_set2 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set2)
#--------------------------------------------------
CompuCostlist =  [28, 15, 24, 21]
UpCostlist = [90, 31, 1, 761]
Mid_ddl_list = [137, 66, 10, 1873]
DDL_list = [234, 95, 35, 1969]
Period_list = [388, 114, 35, 2018]
until = 100000
task_set3 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set3)
#--------------------------------------------------
CompuCostlist = [30, 13, 11, 23]
UpCostlist = [54, 143, 14, 2]
Mid_ddl_list = [111, 294, 30, 7]
DDL_list = [171, 311, 41, 43]
Period_list = [270, 390, 47, 44]
until = 100000
task_set4 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set4)
#--------------------------------------------------
CompuCostlist =  [26, 11, 29, 23]
UpCostlist = [13, 19, 92, 24]
Mid_ddl_list = [27, 36, 298, 44]
DDL_list = [54, 59, 376, 78]
Period_list = [54, 98, 394, 100]
until = 100000
task_set5 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set5)
#--------------------------------------------------
CompuCostlist = [20, 21, 24, 20]
UpCostlist = [61, 14, 15, 26]
Mid_ddl_list = [144, 29, 28, 42]
DDL_list = [173, 58, 58, 84]
Period_list = [258, 78, 76, 88]
until = 100000
task_set6 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set6)
#--------------------------------------------------
CompuCostlist = [12, 30, 18, 16]
UpCostlist = [79, 10, 18, 16]
Mid_ddl_list = [190, 23, 29, 17]
DDL_list = [214, 54, 63, 50]
Period_list = [244, 78, 96, 60]
until = 100000
task_set7 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set7)
#--------------------------------------------------
CompuCostlist = [29, 25, 11, 19]
UpCostlist = [39, 178, 4, 20]
Mid_ddl_list = [57, 645, 4, 35]
DDL_list = [110, 698, 26, 58]
Period_list = [156, 870, 28, 64]
until = 100000
task_set8 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set8)
#--------------------------------------------------
CompuCostlist = [26, 11, 15, 23]
UpCostlist = [28, 3, 69, 15]
Mid_ddl_list = [51, 10, 139, 32]
DDL_list = [97, 31, 185, 57]
Period_list = [110, 50, 196, 64]
until = 100000
task_set9 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set9)

mrset = [4,17,19,16,67,15,85,8,1,12]
